<template>
<div ref="about">
    <div class="about" ref="aboutChild">
    <h3>关于我们</h3>
    <div class="aboutbg">
      <div class="about_img1">
        <img src="@/assets/swiper/lake.jpg" />
      </div>
      <div class="about_img2">
        <img src="@/assets/swiper/desert.jpg" />
      </div>
    </div>
    <div class="aboutbtn">
      <span>
        本系统基于django+vue+echart框架，主要分为数据、算法、可视化3个板块，力致于实现数据开源化、实时化、可视化、科学化。
      </span>
      <div class="btn">
        <div class="first">
          <span>加入我们</span>
        </div>
        <div class="first">
          <span>了解更多</span>
        </div>
      </div>
      </div>
  </div>
  
</div>
  
</template>

<script>
export default {
  name: "About",
  methods:{
      getHeigth(){
          this.$refs.about.style.height=window.getComputedStyle(this.$refs.aboutChild).height
      }
  },
  mounted() {
      this.getHeigth()
  },
};
</script>

<style lang='scss' scoped>

.about {
  
  position: absolute;
  height: 600px;
  width: 100%;
  h3 {
    height: 5rem;

    text-align: center;
    width: 20rem;
    margin-left: 17rem;
    margin-top: 5rem;
    font-size: 50px;
    font-weight: 500;
    font-family: "Agency FB";
  }
  .aboutbg {
    width: 100%;
    height: 80%;
    position: absolute;
    .about_img1 {
      width: 60%;
      
      height: 80%;
      background-color: white;
      img {
        width: 100%;
        height: 100%;
      }
    }
    .about_img2 {
      width: 60%;
      height: 80%;
      background-color: white;
      margin-left: 40%;
      margin-top: -28rem;
      img {
        width: 100%;
        height: 100%;
      }
    }
  }
  .aboutbtn {
    padding: 3rem;
    background-color: rgba(0, 0, 0, 0.8);
    width: 40%;
    position: relative;
    height: 50%;
    margin-top: 15rem;
    margin-left: 20rem;
    span {
      letter-spacing: 2px;
      color: white;
      font-family: 微软雅黑;
      font-size: 25px;
      font-weight: lighter;
    }
    .btn {
      display: flex;
      justify-content: space-between;
    }
    .first {
        border: 1px white solid; 
        width: 35%;
        text-align: center;
        margin-top: 10%;
        span {
          text-align: center;       
          font-size: 30px;
          color: white;
          line-height: 50px;
          font-weight: lighter;
        }
        &:hover {
          background-color: peru;
          border: 1px solid peru;
          cursor: pointer;
        }
      }
  }
}
</style>